package com.ruoyi.game.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房间座位对象 game_room_player_pos
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
public class GameRoomPlayerPos extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 房间ID */
    @Excel(name = "房间ID")
    private Long roomId;

    /** 玩家ID */
    @Excel(name = "玩家ID")
    private Long playerId;

    /** 座位号 */
    @Excel(name = "座位号")
    private Long seatIndex;

    /** 准备状态 */
    @Excel(name = "准备状态")
    private Long isReady;

    /** 托管状态 */
    @Excel(name = "托管状态")
    private Long isTrusteeship;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** $column.columnComment */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setPlayerId(Long playerId)
    {
        this.playerId = playerId;
    }

    public Long getPlayerId() 
    {
        return this.playerId;
    }

    public void setSeatIndex(Long seatIndex) 
    {
        this.seatIndex = seatIndex;
    }

    public Long getSeatIndex() 
    {
        return seatIndex;
    }

    public void setIsReady(Long isReady) 
    {
        this.isReady = isReady;
    }

    public Long getIsReady() 
    {
        return isReady;
    }

    public void setIsTrusteeship(Long isTrusteeship) 
    {
        this.isTrusteeship = isTrusteeship;
    }

    public Long getIsTrusteeship() 
    {
        return isTrusteeship;
    }

    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("playerId", getPlayerId())
            .append("seatIndex", getSeatIndex())
            .append("isReady", getIsReady())
            .append("isTrusteeship", getIsTrusteeship())
            .append("joinTime", getJoinTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
